home *** CD-ROM | disk | FTP | other *** search
/ Future Workshop / Future Workshop.iso / multimed / qtw111 / mplayer / player.hr < prev    next >
Text File  |  1993-09-30  |  13KB  |  310 lines

  1.  
  2. // ---------------------------------------------------------------------
  3. //
  4. // Player.hr - Movie Player - QuickTime for Windows
  5. //
  6. //             Version 1.0
  7. //
  8. //             (c) 1988-1992 Apple Computer, Inc. All Rights Reserved.
  9. //
  10. // ---------------------------------------------------------------------
  11.  
  12.  
  13. // Prevent multiple inclusion
  14. // --------------------------
  15.    #ifndef PLAYER_HR
  16.       #define PLAYER_HR
  17.  
  18.  
  19. // Bitmaps, Icons, Menus, Accelerators
  20. // -----------------
  21.    #define PLAYER_PLAYER_BITMAP          101
  22.    #define PLAYER_PLAYER_DEFICON         102
  23.    #define PLAYER_PLAYER_ICON            103
  24.    #define PLAYER_MOVIE_ICON             104
  25.    #define PLAYER_FRAME_MENU             105
  26.    #define PLAYER_ACCELERATORS           106
  27.    #define PLAYER_CHECKERS_BITMAP        107
  28.  
  29. // Dialog box ids
  30.        // Frame Window
  31.    #define PLAYER_DLG_ABOUTPLAYER        201
  32.    #define PLAYER_DLG_PRINTCANCEL        202
  33.        // Movie Window
  34.    #define PLAYER_DLG_OPTIONS            203
  35.    #define PLAYER_DLG_GETINFO            204
  36.        // Custom template for "print" common dialog
  37.    #define CUSTOM_DLG_COMN_PRINT         205
  38.  
  39.        // Localized templates for dialogs needed by qtole.dll.
  40.        // Offsets are defined in qtole.h. Compiler will not allow use
  41.        // of ( OLE_DLG_FIRST + QTOLE_DLG_OFFSET_... ) form as it will in
  42.        // string table
  43.    #define OLE_DLG_FIRST                 230 
  44.    #define OLE_DLG_FILESEARCH            230  // OLE_DLG_FIRST + QTOLE_DLG_OFFSET_SEARCHDLG
  45.  
  46.  
  47. // Frame Window
  48. // -----------
  49.    #define PLAYER_FRAME_CLASS         "PlayerFrameClass"
  50.         // Readable class name that is used in registration data base
  51.  
  52.      // Frame window menu ids
  53.      // See note below these ids !!!
  54.    #define PLAYER_FILE_OPEN               20
  55.    #define PLAYER_FILE_CLOSE              21
  56.    #define PLAYER_FILE_PRINT              22
  57.    #define PLAYER_FILE_PRTSETUP           23
  58.    #define PLAYER_FILE_EXIT               24
  59.  
  60.    #define PLAYER_EDIT_COPY               30
  61.    #define PLAYER_EDIT_OPTIONS            31
  62.    #define PLAYER_EDIT_CANCELSEL          32
  63.  
  64.    #define PLAYER_MOVIE_GETINFO           40
  65.    #define PLAYER_MOVIE_STOPATEND         41
  66.    #define PLAYER_MOVIE_LOOP              42
  67.    #define PLAYER_MOVIE_BACKANDFORTH      43
  68.    #define PLAYER_MOVIE_PLAYSELONLY       44
  69.    #define PLAYER_MOVIE_HALFSIZE          45
  70.    #define PLAYER_MOVIE_NORMALSIZE        46
  71.    #define PLAYER_MOVIE_DOUBLESIZE        47
  72.    #define PLAYER_MOVIE_SHOWPOSTER        48
  73.  
  74.    #define PLAYER_WINDOW_TILE             50
  75.    #define PLAYER_WINDOW_CASCADE          51
  76.    #define PLAYER_WINDOW_ARRANGE          52
  77.  
  78.    #define PLAYER_HELP_PLAYERHELP         60
  79.    #define PLAYER_HELP_USINGHELP          61
  80.    #define PLAYER_HELP_ABOUTPLAYER        63
  81.  
  82. // The next define is the menu id of the first movie window. Each new window
  83. // gets an id based on this value. These are the ids used by hwndClient to
  84. // refer to the list of windows in the Windows popup. THIS FIRST ID VALUE
  85. // MUST BE GREATER THAN ANY OF THE FRAME WINDOW MENU IDS ABOVE !!!!
  86.    #define PLAYER_CLIENT_FIRSTCHILD      500
  87.  
  88.  
  89.    #define MENU_FILE_POS                0    // position of File menu item
  90.    #define MENU_EDIT_POS                1    // position of Edit menu item
  91.    #define MENU_MOVIE_POS               2    // position of Movie menu item
  92.    #define MENU_WINDOW_POS              3    // position of Windows menu item
  93.  
  94.  
  95. // Define the following message in the coalesce range to prevent multiple
  96. // copies of the message from appearing in the message queue
  97.    #define WM_PLAYER_INFO_UPDATE        (WM_COALESCE_FIRST)
  98.  
  99. //  WM_USER ids
  100.    #define WM_PLAYER_CMDLINE              (WM_USER + 1)
  101.    #define WM_PLAYER_MOVIEDELETED         (WM_USER + 2)
  102.    #define WM_PLAYER_PRINTFRAME           (WM_USER + 3)
  103.    #define WM_PLAYER_INITPOPUPS           (WM_USER + 4)
  104.    #define WM_PLAYER_ACTIVATEMOVIE        (WM_USER + 5)
  105.    #define WM_PLAYER_ACTIVATECONTROLLER   (WM_USER + 6)
  106.    #define WM_PLAYER_UPDATEGBBOUNDSRECT   (WM_USER + 7)
  107.    #define WM_PLAYER_PLAYTHEMOVIE         (WM_USER + 8)
  108.    #define WM_PLAYER_INFO_UPDATEFILENAME  (WM_USER + 9)
  109.    #define WM_PLAYER_OLE_OPTIONSDLG       (WM_USER + 10)
  110.    #define WM_PLAYER_OLE_PLAYOBJECT       (WM_USER + 11)
  111.  
  112. // end WM_USER ids
  113.  
  114.       // About box control id
  115.    #define PLAYER_ABOUT_BMPFRAME           10
  116.  
  117.       // Print Cancel dlg control id
  118.    #define PRINT_CANCEL_MOVIENAME          10
  119.  
  120.  
  121. // Movie Window specific ids
  122. // -----------
  123.    #define PLAYER_MOVIE_CLASS         "PlayerMovieClass"
  124.  
  125.      // GetInfo dialog box control ids
  126.    #define MOVIE_INFO_NAME                10
  127.    #define MOVIE_INFO_FILESIZE            11
  128.    #define MOVIE_INFO_DURATION            12
  129.    #define MOVIE_INFO_SELECTION           13
  130.    #define MOVIE_INFO_CURSIZE             14
  131.    #define MOVIE_INFO_WANDH               15
  132.    #define MOVIE_INFO_RESOLUTION          16
  133.    #define MOVIE_INFO_COLORS              17
  134.    #define MOVIE_INFO_COMPRESSOR          18
  135.    #define MOVIE_INFO_SND_NUMCHANNELS     19
  136.    #define MOVIE_INFO_SND_SOUNDQUALITY    20
  137.    #define MOVIE_INFO_LINE1               21
  138.    #define MOVIE_INFO_LINE2               22
  139.  
  140.  
  141. // Edit options ids
  142. // -----------
  143.  
  144.      // Edit options dialog box control ids
  145.    #define EDIT_OPTIONS_SHOWMC            301
  146.    #define EDIT_OPTIONS_CAPTION_TEXT      302
  147.    #define EDIT_OPTIONS_CAPTION           303
  148.  
  149.    #define EDIT_OPTIONS_PLAYSELONLY       304
  150.    #define EDIT_OPTIONS_DRAWFRAME         305
  151.    #define EDIT_OPTIONS_USEPALETTE        306
  152.  
  153.    #define EDIT_OPTIONS_COPYICON          307
  154.    #define EDIT_OPTIONS_SHOWTITLEBAR      308
  155.    #define EDIT_OPTIONS_COPYCURRENT       309
  156.    #define EDIT_OPTIONS_COPYPOSTER        310
  157.  
  158.    #define EDIT_OPTIONS_STOPATEND         311
  159.    #define EDIT_OPTIONS_LOOP              312
  160.    #define EDIT_OPTIONS_PALINDROME        313
  161.  
  162.    #define EDIT_OPTIONS_SIZECURRENT       314
  163.    #define EDIT_OPTIONS_SIZEHALF          315
  164.    #define EDIT_OPTIONS_SIZENORMAL        316
  165.    #define EDIT_OPTIONS_SIZEDOUBLE        317
  166.  
  167.    #define EDIT_OPTIONS_SAVEASDEF         318
  168.    #define EDIT_OPTIONS_RESTRDEF          319
  169.  
  170. // Strings
  171. // -------
  172.    #define PLAYER_STRING_NOMEMORY          0x0100
  173.    #define PLAYER_STRING_CAPTION           0x0101
  174.    #define PLAYER_STRING_NOACCELORMENU     0x0102
  175.    #define PLAYER_STRING_NOWINDOW          0x0103
  176.    #define PLAYER_STRING_NODC              0x0104
  177.  
  178.    #define PLAYER_STRING_FILEEXT           0x0110
  179.    #define PLAYER_STRING_OPENMOVIEFILTER   0x0111
  180.    #define PLAYER_STRING_CDLG_FINDRESFAIL  0x0112
  181.    #define PLAYER_STRING_CDLG_INITFAIL     0x0113
  182.    #define PLAYER_STRING_CDLG_LOADRESFAIL  0x0114
  183.    #define PLAYER_STRING_CDLG_LOCKRESFAIL  0x0115
  184.    #define PLAYER_STRING_CDLG_MEMALLOCFAIL 0x0116
  185.    #define PLAYER_STRING_CDLG_MEMLOCKFAIL  0x0117
  186.    #define PLAYER_STRING_CDLG_STRUCTSIZE   0x0118
  187.    #define PLAYER_STRING_CDLG_BADFILENAME  0x0119
  188.    #define PLAYER_STRING_CDLG_PRTINITFAIL  0x011a
  189.    #define PLAYER_STRING_CDLG_LOADDRVFAIL  0x011b
  190.    #define PLAYER_STRING_CDLG_NODEFPRINTER 0x011c
  191.    #define PLAYER_STRING_CDLG_NODEVICES    0x011d
  192.    #define PLAYER_STRING_CDLG_NOFINDPNTR   0x011e
  193.    #define PLAYER_STRING_CDLG_SETUPFAIL    0x011f
  194.    #define PLAYER_STRING_CDLG_GENFAILURE   0x0120
  195.    #define PLAYER_STRING_CDLG_FORMAT       0x0121
  196.    #define PLAYER_STRING_CDLG_CAP          0x0122
  197.  
  198.    #define PLAYER_STRING_CANCELDLG         0x0130
  199.    #define PLAYER_STRING_ABORTPROC         0x0131
  200.    #define PLAYER_STRING_PRT_OUTOFDISK     0x0132
  201.    #define PLAYER_STRING_PRT_NOMEMORY      0x0133
  202.    #define PLAYER_STRING_PRT_GENERROR      0x0134
  203.    #define PLAYER_STRING_PRT_CAPTION       0x0135
  204.  
  205.    #define PLAYER_STRING_NOHELPFILE        0x0140
  206.  
  207.    #define PLAYER_STRING_SIZEBYTES         0x0150
  208.    #define PLAYER_STRING_SIZEKBYTES        0x0151
  209.    #define PLAYER_STRING_DURATION          0x0152
  210.    #define PLAYER_STRING_SELECTION         0x0153
  211.    #define PLAYER_STRING_NOSELECTION       0x0154
  212.    #define PLAYER_STRING_WANDH             0x0155
  213.    #define PLAYER_STRING_RESOLUTION        0x0156
  214.    #define PLAYER_STRING_NORESOLUTION      0X0157
  215.    #define PLAYER_STRING_SND_NOSOUND       0x0158
  216.    #define PLAYER_STRING_SND_NOCARD        0x0159
  217.    #define PLAYER_STRING_SND_MONO          0x015a
  218.    #define PLAYER_STRING_SND_STEREO        0x015b
  219.    #define PLAYER_STRING_SND_SOUNDQUALITY  0x015c
  220.    #define PLAYER_STRING_NOVIDEO           0x015d
  221.  
  222.    #define PLAYER_STRING_CODEC_NONE        0x0170
  223.    #define PLAYER_STRING_CODEC_PHOTO       0x0171
  224.    #define PLAYER_STRING_CODEC_ANIMATION   0x0172
  225.    #define PLAYER_STRING_CODEC_GRAPHICS    0x0173
  226.    #define PLAYER_STRING_CODEC_VIDEO       0x0174
  227.    #define PLAYER_STRING_CODEC_CVID        0x0175
  228.  
  229.    #define PLAYER_STRING_COLORS            0x0180
  230.    #define PLAYER_STRING_CLRS_BANDW        0x0181
  231.    #define PLAYER_STRING_CLRS_2GRAYS       0x0182
  232.    #define PLAYER_STRING_CLRS_4COLORS      0x0183
  233.    #define PLAYER_STRING_CLRS_4GRAYS       0x0184
  234.    #define PLAYER_STRING_CLRS_16COLORS     0x0185
  235.    #define PLAYER_STRING_CLRS_16GRAYS      0x0186
  236.    #define PLAYER_STRING_CLRS_256COLORS    0x0187
  237.    #define PLAYER_STRING_CLRS_256GRAYS     0x0188
  238.    #define PLAYER_STRING_CLRS_THOUSANDS    0x0189
  239.    #define PLAYER_STRING_CLRS_MILLIONS     0x018a
  240.    #define PLAYER_STRING_CLRS_MILLNSPLUS   0x018b
  241.  
  242.    #define PLAYER_STRING_QTWNOEXIST        0x0190
  243.    #define PLAYER_STRING_QTWBADDLL         0x0191
  244.    #define PLAYER_STRING_QTW286            0x0192
  245.    #define PLAYER_STRING_QTWWIN30          0x0193
  246.    #define PLAYER_STRING_QTWFAILED         0x0194
  247.    #define PLAYER_STRING_ENTMOVFAILED      0x0195
  248.    #define PLAYER_STRING_OLEINITFAILED     0x0196
  249.  
  250.    #define PLAYER_STRING_NOMAKEMOVIEWND    0x01a0
  251.    #define PLAYER_STRING_NOOPENFILE        0x01a1
  252.    #define PLAYER_STRING_NOINFO            0x01a2
  253.    #define PLAYER_STRING_NOMOVIEDATA       0x01a3
  254.  
  255.    #define PLAYER_STRING_NEWMOVIEERR       0x01b0
  256.    #define PLAYER_STRING_INVALIDDATAREF    0x01b1
  257.    #define PLAYER_STRING_NOCONTROLLER      0x01b2
  258.  
  259.    #define PLAYER_STRING_COPYFAILED        0x01c0
  260.    #define PLAYER_STRING_GETPICTFAILED     0x01c1
  261.    #define PLAYER_STRING_DRAWPICFAILED     0x01c2
  262.    #define PLAYER_STRING_FACENAME          0x01c3
  263.  
  264.  
  265. //  These are the ids for the file menu popup OLE protocol strings
  266.    #define PLAYER_STRING_CLOSE             0x01d0
  267.    #define PLAYER_STRING_EXIT              0x01d1
  268.    #define PLAYER_STRING_OLECLOSE          0x01d2
  269.    #define PLAYER_STRING_OLEEXIT           0x01d3
  270.  
  271.  
  272. //  These are strings use to access the default copy options in qtw.ini
  273.    #define PLAYER_STRING_OPTIONS_NAME           0x01e0
  274.    #define PLAYER_STRING_OPTIONS_SHOWMC         0x01e1
  275.    #define PLAYER_STRING_OPTIONS_PLAYSELONLY    0x01e2
  276.    #define PLAYER_STRING_OPTIONS_DRAWFRAME      0x01e3
  277.    #define PLAYER_STRING_OPTIONS_USEPALETTE     0x01e4
  278.    #define PLAYER_STRING_OPTIONS_COPYICON       0x01e5
  279.    #define PLAYER_STRING_OPTIONS_SHOWTITLE      0x01e6
  280.    #define PLAYER_STRING_OPTIONS_CURRENTFRAME   0x01e7
  281.    #define PLAYER_STRING_OPTIONS_LOOP           0x01e8
  282.    #define PLAYER_STRING_OPTIONS_LOOPPALIND     0x01e9
  283.    #define PLAYER_STRING_OPTIONS_SIZEHALF       0x01ea
  284.    #define PLAYER_STRING_OPTIONS_SIZENORMAL     0x01eb
  285.    #define PLAYER_STRING_OPTIONS_SIZEDOUBLE     0x01ec
  286.  
  287.  
  288. // These are the ids for the strings that must be supplied for QTOLE.DLL
  289.    #define OLE_STRING_FIRST                     0x01f0  
  290.    #define OLE_STRING_READABLENAME     ( OLE_STRING_FIRST + QTOLE_STR_OFFSET_READABLENAME )
  291.    #define OLE_STRING_PLAY             ( OLE_STRING_FIRST + QTOLE_STR_OFFSET_PLAY )
  292.    #define OLE_STRING_EDIT             ( OLE_STRING_FIRST + QTOLE_STR_OFFSET_EDIT )
  293.    #define OLE_STRING_OPTIONS          ( OLE_STRING_FIRST + QTOLE_STR_OFFSET_OPTIONS )
  294.    #define OLE_STRING_UPDATE           ( OLE_STRING_FIRST + QTOLE_STR_OFFSET_UPDATA )
  295.    #define OLE_STRING_ALREADYINSERTING ( OLE_STRING_FIRST + QTOLE_STR_OFFSET_ALREADYINSERTING )
  296.  
  297.    #define OLE_STRING_WHEREFILE        ( OLE_STRING_FIRST + QTOLE_STR_OFFSET_WHEREFILE )
  298.    #define OLE_STRING_UPDATEPATH       ( OLE_STRING_FIRST + QTOLE_STR_OFFSET_UPDATEPATH )
  299.    #define OLE_STRING_NOTFILESIZE      ( OLE_STRING_FIRST + QTOLE_STR_OFFSET_NOTFILESIZE )
  300.    #define OLE_STRING_NOTFILENAME      ( OLE_STRING_FIRST + QTOLE_STR_OFFSET_NOTFILENAME )
  301.  
  302.    #define OLE_STRING_SEARCHDIRS       ( OLE_STRING_FIRST + QTOLE_STR_OFFSET_SEARCHDIRS )
  303.    #define OLE_STRING_FILENOTFOUND     ( OLE_STRING_FIRST + QTOLE_STR_OFFSET_FILENOTFOUND )
  304.  
  305. // End of player.hr
  306. // -----------------
  307.    #endif
  308.  
  309.  
  310.